import { Module } from '@nestjs/common';
import { VideoService } from './video.service';
import { VideoController } from './video.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Video } from 'src/entities/video.entity';
import { QiniuModule } from '../qiniu/qiniu.module';
import { LikeModule } from '../like/like.module';
import { VideoHistoryModule } from '../video-history/video-history.module';
import { VideoCategory } from 'src/entities/video-category.entity';
import { FollowModule } from '../follow/follow.module';
import { User } from 'src/entities/user.entity';

@Module({
  imports: [TypeOrmModule.forFeature([Video, VideoCategory, User]), QiniuModule, LikeModule, VideoHistoryModule, FollowModule],
  controllers: [VideoController],
  providers: [VideoService],
  exports: [VideoService],
})
export class VideoModule {}
